applications of graph in dsa